package cn.iocoder.yudao.module.shop.info.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.PositiveOrZero;
import lombok.Data;

import java.util.List;

@Schema(description = "店铺配送规则 Response VO")
@Data
public class AppShopDeliveryRulesVO {

    @Schema(description = "是否启用全场包邮")
    @NotNull(message = "是否启用全场包邮不能为空")
    private Boolean deliveryExpressFreeEnabled;

    @Schema(description = "全场包邮的最小金额，单位：分")
    @NotNull(message = "全场包邮的最小金额不能为空")
    @PositiveOrZero(message = "全场包邮的最小金额不能是负数")
    private Integer deliveryExpressFreePrice;

    @Schema(description = "是否开启门店自提")
    @NotNull(message = "是否开启门店自提不能为空")
    private Boolean deliveryPickUpEnabled;

    private List<Long> deliveryExpressTemplates;

}
